package cn.tedu.thread;

public class ThreadDemo3 {
    public static void main(String[] args) {
        Thread t1 = new Thread(){
            public void run(){
                for (int i=0;i<100000;i++){
                    System.out.println("CPU频率2.1GHz");
                }
            }
        };
        Runnable r1 = () ->{
                for (int i=0;i<100000;i++){
                    System.out.println("礼敬阿弥陀佛");
                }
        };
        Thread t2 = new Thread(r1);
        t1.start();
        t2.start();
    }
}
